home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-08-22 | 783 b | 28 lines | [TEXT/PJMM] |
- { This function can be included in a Pascal program to test whether or not the}
- { use is holding down the command-dot key, which is usually used to cancel}
- { the current operation.}
- {}
- { If you're running a particularly long xCOD, you may want allow use this to test whether or}
- { not the user wants to leave the xCOD and return to NCII. }
- {}
-
- unit CommandDot;
- interface
- function CommandDotIsDown: boolean;
-
- implementation
-
-
- function CommandDotIsDown: boolean;
- var
- theKeyMap: KeyMap;
- const
- cmdID = 55; { from I-251 inside mac}
- periodID = 47; { this is US ; in International keyboard it's 44 (47 is ,) Should I have a switch that sets this to 44 if user wnats? }
- begin
- GetKeys(theKeyMap);
- CommandDotIsDown := theKeyMap[cmdID] and theKeyMap[periodID];
- end;
-
-
- end.